package com.aclyyx.mi.display.remote.server;

import com.aclyyx.mi.display.FirstActivity;
import com.aclyyx.mi.display.Param;

public class ComputeThread extends Thread {

	private FirstActivity a;
	
	public ComputeThread(FirstActivity a) {
		this.a = a;
	}
	
	public void run() {
		a.param.runtime = 0;
		try {
			while (a.serverStarted) {
				a.param.runtime++;
				try {Thread.sleep(Param.COMPUTE_PERIOD);} 
				catch (InterruptedException e) {}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
